// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import { WinBase } from "../wins/WinBase";

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends WinBase {

    @property(cc.RichText)
    tips: cc.RichText = null;

    start () {
        cc.tween(this.node)
        .by(0.5, {position: cc.v3(0, 300, 0)},{easing: 'quadIn'})
        .start();
        this.tips.string = this._args.msg;
        this.scheduleOnce(() => {
            this._close();
        }, 1);
    }

    // update (dt) {}
}
